↳ Prolog
↳ PrologToPiTRSProof
d_in(power(U, V), X, times(V, times(W, power(U, p(V))))) → U5(U, V, X, W, isnumber_in(V))
isnumber_in(p(X)) → U8(X, isnumber_in(X))
isnumber_in(s(X)) → U7(X, isnumber_in(X))
isnumber_in(0) → isnumber_out(0)
U7(X, isnumber_out(X)) → isnumber_out(s(X))
U8(X, isnumber_out(X)) → isnumber_out(p(X))
U5(U, V, X, W, isnumber_out(V)) → U6(U, V, X, W, d_in(U, X, W))
d_in(div(U, V), X, W) → U4(U, V, X, W, d_in(times(U, power(V, p(0))), X, W))
d_in(times(U, V), X, +(times(B, U), times(A, V))) → U2(U, V, X, B, A, d_in(U, X, A))
d_in(T, X, 0) → U1(T, X, isnumber_in(T))
U1(T, X, isnumber_out(T)) → d_out(T, X, 0)
d_in(X, X, 1) → d_out(X, X, 1)
U2(U, V, X, B, A, d_out(U, X, A)) → U3(U, V, X, B, A, d_in(V, X, B))
U3(U, V, X, B, A, d_out(V, X, B)) → d_out(times(U, V), X, +(times(B, U), times(A, V)))
U4(U, V, X, W, d_out(times(U, power(V, p(0))), X, W)) → d_out(div(U, V), X, W)
U6(U, V, X, W, d_out(U, X, W)) → d_out(power(U, V), X, times(V, times(W, power(U, p(V)))))
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
d_in(power(U, V), X, times(V, times(W, power(U, p(V))))) → U5(U, V, X, W, isnumber_in(V))
isnumber_in(p(X)) → U8(X, isnumber_in(X))
isnumber_in(s(X)) → U7(X, isnumber_in(X))
isnumber_in(0) → isnumber_out(0)
U7(X, isnumber_out(X)) → isnumber_out(s(X))
U8(X, isnumber_out(X)) → isnumber_out(p(X))
U5(U, V, X, W, isnumber_out(V)) → U6(U, V, X, W, d_in(U, X, W))
d_in(div(U, V), X, W) → U4(U, V, X, W, d_in(times(U, power(V, p(0))), X, W))
d_in(times(U, V), X, +(times(B, U), times(A, V))) → U2(U, V, X, B, A, d_in(U, X, A))
d_in(T, X, 0) → U1(T, X, isnumber_in(T))
U1(T, X, isnumber_out(T)) → d_out(T, X, 0)
d_in(X, X, 1) → d_out(X, X, 1)
U2(U, V, X, B, A, d_out(U, X, A)) → U3(U, V, X, B, A, d_in(V, X, B))
U3(U, V, X, B, A, d_out(V, X, B)) → d_out(times(U, V), X, +(times(B, U), times(A, V)))
U4(U, V, X, W, d_out(times(U, power(V, p(0))), X, W)) → d_out(div(U, V), X, W)
U6(U, V, X, W, d_out(U, X, W)) → d_out(power(U, V), X, times(V, times(W, power(U, p(V)))))
D_IN(power(U, V), X, times(V, times(W, power(U, p(V))))) → U51(U, V, X, W, isnumber_in(V))
D_IN(power(U, V), X, times(V, times(W, power(U, p(V))))) → ISNUMBER_IN(V)
ISNUMBER_IN(p(X)) → U81(X, isnumber_in(X))
ISNUMBER_IN(p(X)) → ISNUMBER_IN(X)
ISNUMBER_IN(s(X)) → U71(X, isnumber_in(X))
ISNUMBER_IN(s(X)) → ISNUMBER_IN(X)
U51(U, V, X, W, isnumber_out(V)) → U61(U, V, X, W, d_in(U, X, W))
U51(U, V, X, W, isnumber_out(V)) → D_IN(U, X, W)
D_IN(div(U, V), X, W) → U41(U, V, X, W, d_in(times(U, power(V, p(0))), X, W))
D_IN(div(U, V), X, W) → D_IN(times(U, power(V, p(0))), X, W)
D_IN(times(U, V), X, +(times(B, U), times(A, V))) → U21(U, V, X, B, A, d_in(U, X, A))
D_IN(times(U, V), X, +(times(B, U), times(A, V))) → D_IN(U, X, A)
D_IN(T, X, 0) → U11(T, X, isnumber_in(T))
D_IN(T, X, 0) → ISNUMBER_IN(T)
U21(U, V, X, B, A, d_out(U, X, A)) → U31(U, V, X, B, A, d_in(V, X, B))
U21(U, V, X, B, A, d_out(U, X, A)) → D_IN(V, X, B)
d_in(power(U, V), X, times(V, times(W, power(U, p(V))))) → U5(U, V, X, W, isnumber_in(V))
isnumber_in(p(X)) → U8(X, isnumber_in(X))
isnumber_in(s(X)) → U7(X, isnumber_in(X))
isnumber_in(0) → isnumber_out(0)
U7(X, isnumber_out(X)) → isnumber_out(s(X))
U8(X, isnumber_out(X)) → isnumber_out(p(X))
U5(U, V, X, W, isnumber_out(V)) → U6(U, V, X, W, d_in(U, X, W))
d_in(div(U, V), X, W) → U4(U, V, X, W, d_in(times(U, power(V, p(0))), X, W))
d_in(times(U, V), X, +(times(B, U), times(A, V))) → U2(U, V, X, B, A, d_in(U, X, A))
d_in(T, X, 0) → U1(T, X, isnumber_in(T))
U1(T, X, isnumber_out(T)) → d_out(T, X, 0)
d_in(X, X, 1) → d_out(X, X, 1)
U2(U, V, X, B, A, d_out(U, X, A)) → U3(U, V, X, B, A, d_in(V, X, B))
U3(U, V, X, B, A, d_out(V, X, B)) → d_out(times(U, V), X, +(times(B, U), times(A, V)))
U4(U, V, X, W, d_out(times(U, power(V, p(0))), X, W)) → d_out(div(U, V), X, W)
U6(U, V, X, W, d_out(U, X, W)) → d_out(power(U, V), X, times(V, times(W, power(U, p(V)))))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
D_IN(power(U, V), X, times(V, times(W, power(U, p(V))))) → U51(U, V, X, W, isnumber_in(V))
D_IN(power(U, V), X, times(V, times(W, power(U, p(V))))) → ISNUMBER_IN(V)
ISNUMBER_IN(p(X)) → U81(X, isnumber_in(X))
ISNUMBER_IN(p(X)) → ISNUMBER_IN(X)
ISNUMBER_IN(s(X)) → U71(X, isnumber_in(X))
ISNUMBER_IN(s(X)) → ISNUMBER_IN(X)
U51(U, V, X, W, isnumber_out(V)) → U61(U, V, X, W, d_in(U, X, W))
U51(U, V, X, W, isnumber_out(V)) → D_IN(U, X, W)
D_IN(div(U, V), X, W) → U41(U, V, X, W, d_in(times(U, power(V, p(0))), X, W))
D_IN(div(U, V), X, W) → D_IN(times(U, power(V, p(0))), X, W)
D_IN(times(U, V), X, +(times(B, U), times(A, V))) → U21(U, V, X, B, A, d_in(U, X, A))
D_IN(times(U, V), X, +(times(B, U), times(A, V))) → D_IN(U, X, A)
D_IN(T, X, 0) → U11(T, X, isnumber_in(T))
D_IN(T, X, 0) → ISNUMBER_IN(T)
U21(U, V, X, B, A, d_out(U, X, A)) → U31(U, V, X, B, A, d_in(V, X, B))
U21(U, V, X, B, A, d_out(U, X, A)) → D_IN(V, X, B)
d_in(power(U, V), X, times(V, times(W, power(U, p(V))))) → U5(U, V, X, W, isnumber_in(V))
isnumber_in(p(X)) → U8(X, isnumber_in(X))
isnumber_in(s(X)) → U7(X, isnumber_in(X))
isnumber_in(0) → isnumber_out(0)
U7(X, isnumber_out(X)) → isnumber_out(s(X))
U8(X, isnumber_out(X)) → isnumber_out(p(X))
U5(U, V, X, W, isnumber_out(V)) → U6(U, V, X, W, d_in(U, X, W))
d_in(div(U, V), X, W) → U4(U, V, X, W, d_in(times(U, power(V, p(0))), X, W))
d_in(times(U, V), X, +(times(B, U), times(A, V))) → U2(U, V, X, B, A, d_in(U, X, A))
d_in(T, X, 0) → U1(T, X, isnumber_in(T))
U1(T, X, isnumber_out(T)) → d_out(T, X, 0)
d_in(X, X, 1) → d_out(X, X, 1)
U2(U, V, X, B, A, d_out(U, X, A)) → U3(U, V, X, B, A, d_in(V, X, B))
U3(U, V, X, B, A, d_out(V, X, B)) → d_out(times(U, V), X, +(times(B, U), times(A, V)))
U4(U, V, X, W, d_out(times(U, power(V, p(0))), X, W)) → d_out(div(U, V), X, W)
U6(U, V, X, W, d_out(U, X, W)) → d_out(power(U, V), X, times(V, times(W, power(U, p(V)))))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
ISNUMBER_IN(s(X)) → ISNUMBER_IN(X)
ISNUMBER_IN(p(X)) → ISNUMBER_IN(X)
d_in(power(U, V), X, times(V, times(W, power(U, p(V))))) → U5(U, V, X, W, isnumber_in(V))
isnumber_in(p(X)) → U8(X, isnumber_in(X))
isnumber_in(s(X)) → U7(X, isnumber_in(X))
isnumber_in(0) → isnumber_out(0)
U7(X, isnumber_out(X)) → isnumber_out(s(X))
U8(X, isnumber_out(X)) → isnumber_out(p(X))
U5(U, V, X, W, isnumber_out(V)) → U6(U, V, X, W, d_in(U, X, W))
d_in(div(U, V), X, W) → U4(U, V, X, W, d_in(times(U, power(V, p(0))), X, W))
d_in(times(U, V), X, +(times(B, U), times(A, V))) → U2(U, V, X, B, A, d_in(U, X, A))
d_in(T, X, 0) → U1(T, X, isnumber_in(T))
U1(T, X, isnumber_out(T)) → d_out(T, X, 0)
d_in(X, X, 1) → d_out(X, X, 1)
U2(U, V, X, B, A, d_out(U, X, A)) → U3(U, V, X, B, A, d_in(V, X, B))
U3(U, V, X, B, A, d_out(V, X, B)) → d_out(times(U, V), X, +(times(B, U), times(A, V)))
U4(U, V, X, W, d_out(times(U, power(V, p(0))), X, W)) → d_out(div(U, V), X, W)
U6(U, V, X, W, d_out(U, X, W)) → d_out(power(U, V), X, times(V, times(W, power(U, p(V)))))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
ISNUMBER_IN(s(X)) → ISNUMBER_IN(X)
ISNUMBER_IN(p(X)) → ISNUMBER_IN(X)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PiDP
ISNUMBER_IN(s(X)) → ISNUMBER_IN(X)
ISNUMBER_IN(p(X)) → ISNUMBER_IN(X)
From the DPs we obtained the following set of size-change graphs:
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDPToQDPProof
U21(U, V, X, B, A, d_out(U, X, A)) → D_IN(V, X, B)
D_IN(times(U, V), X, +(times(B, U), times(A, V))) → D_IN(U, X, A)
D_IN(div(U, V), X, W) → D_IN(times(U, power(V, p(0))), X, W)
D_IN(power(U, V), X, times(V, times(W, power(U, p(V))))) → U51(U, V, X, W, isnumber_in(V))
D_IN(times(U, V), X, +(times(B, U), times(A, V))) → U21(U, V, X, B, A, d_in(U, X, A))
U51(U, V, X, W, isnumber_out(V)) → D_IN(U, X, W)
d_in(power(U, V), X, times(V, times(W, power(U, p(V))))) → U5(U, V, X, W, isnumber_in(V))
isnumber_in(p(X)) → U8(X, isnumber_in(X))
isnumber_in(s(X)) → U7(X, isnumber_in(X))
isnumber_in(0) → isnumber_out(0)
U7(X, isnumber_out(X)) → isnumber_out(s(X))
U8(X, isnumber_out(X)) → isnumber_out(p(X))
U5(U, V, X, W, isnumber_out(V)) → U6(U, V, X, W, d_in(U, X, W))
d_in(div(U, V), X, W) → U4(U, V, X, W, d_in(times(U, power(V, p(0))), X, W))
d_in(times(U, V), X, +(times(B, U), times(A, V))) → U2(U, V, X, B, A, d_in(U, X, A))
d_in(T, X, 0) → U1(T, X, isnumber_in(T))
U1(T, X, isnumber_out(T)) → d_out(T, X, 0)
d_in(X, X, 1) → d_out(X, X, 1)
U2(U, V, X, B, A, d_out(U, X, A)) → U3(U, V, X, B, A, d_in(V, X, B))
U3(U, V, X, B, A, d_out(V, X, B)) → d_out(times(U, V), X, +(times(B, U), times(A, V)))
U4(U, V, X, W, d_out(times(U, power(V, p(0))), X, W)) → d_out(div(U, V), X, W)
U6(U, V, X, W, d_out(U, X, W)) → d_out(power(U, V), X, times(V, times(W, power(U, p(V)))))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPOrderProof
D_IN(times(U, V), X) → U21(U, V, X, d_in(U, X))
U21(U, V, X, d_out(A)) → D_IN(V, X)
U51(U, V, X, isnumber_out) → D_IN(U, X)
D_IN(div(U, V), X) → D_IN(times(U, power(V, p(0))), X)
D_IN(power(U, V), X) → U51(U, V, X, isnumber_in(V))
D_IN(times(U, V), X) → D_IN(U, X)
d_in(power(U, V), X) → U5(U, V, X, isnumber_in(V))
isnumber_in(p(X)) → U8(isnumber_in(X))
isnumber_in(s(X)) → U7(isnumber_in(X))
isnumber_in(0) → isnumber_out
U7(isnumber_out) → isnumber_out
U8(isnumber_out) → isnumber_out
U5(U, V, X, isnumber_out) → U6(U, V, d_in(U, X))
d_in(div(U, V), X) → U4(d_in(times(U, power(V, p(0))), X))
d_in(times(U, V), X) → U2(U, V, X, d_in(U, X))
d_in(T, X) → U1(isnumber_in(T))
U1(isnumber_out) → d_out(0)
d_in(X, X) → d_out(1)
U2(U, V, X, d_out(A)) → U3(U, V, A, d_in(V, X))
U3(U, V, A, d_out(B)) → d_out(+(times(B, U), times(A, V)))
U4(d_out(W)) → d_out(W)
U6(U, V, d_out(W)) → d_out(times(V, times(W, power(U, p(V)))))
d_in(x0, x1)
isnumber_in(x0)
U7(x0)
U8(x0)
U5(x0, x1, x2, x3)
U1(x0)
U2(x0, x1, x2, x3)
U3(x0, x1, x2, x3)
U4(x0)
U6(x0, x1, x2)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U21(U, V, X, d_out(A)) → D_IN(V, X)
U51(U, V, X, isnumber_out) → D_IN(U, X)
D_IN(div(U, V), X) → D_IN(times(U, power(V, p(0))), X)
D_IN(power(U, V), X) → U51(U, V, X, isnumber_in(V))
D_IN(times(U, V), X) → D_IN(U, X)
Used ordering: Combined order from the following AFS and order.
D_IN(times(U, V), X) → U21(U, V, X, d_in(U, X))
div2 > [times2, U2^12] > U21 > [dout, U81]
div2 > power2 > U5^13 > [dout, U81]
div2 > power2 > U52 > [isnumberout, 0, U63, U7, s] > p1 > [dout, U81]
+ > [dout, U81]
1 > [dout, U81]
isnumberout: multiset
power2: multiset
0: multiset
s: []
times2: [2,1]
U5^13: multiset
div2: [1,2]
U52: multiset
U7: []
U63: multiset
U81: multiset
+: []
1: multiset
U2^12: [1,2]
dout: []
p1: [1]
U21: multiset
U1(isnumber_out) → d_out(0)
d_in(power(U, V), X) → U5(U, V, X, isnumber_in(V))
U6(U, V, d_out(W)) → d_out(times(V, times(W, power(U, p(V)))))
isnumber_in(0) → isnumber_out
d_in(div(U, V), X) → U4(d_in(times(U, power(V, p(0))), X))
d_in(T, X) → U1(isnumber_in(T))
U4(d_out(W)) → d_out(W)
U7(isnumber_out) → isnumber_out
U3(U, V, A, d_out(B)) → d_out(+(times(B, U), times(A, V)))
d_in(times(U, V), X) → U2(U, V, X, d_in(U, X))
U2(U, V, X, d_out(A)) → U3(U, V, A, d_in(V, X))
U8(isnumber_out) → isnumber_out
isnumber_in(p(X)) → U8(isnumber_in(X))
d_in(X, X) → d_out(1)
U5(U, V, X, isnumber_out) → U6(U, V, d_in(U, X))
isnumber_in(s(X)) → U7(isnumber_in(X))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ DependencyGraphProof
D_IN(times(U, V), X) → U21(U, V, X, d_in(U, X))
d_in(power(U, V), X) → U5(U, V, X, isnumber_in(V))
isnumber_in(p(X)) → U8(isnumber_in(X))
isnumber_in(s(X)) → U7(isnumber_in(X))
isnumber_in(0) → isnumber_out
U7(isnumber_out) → isnumber_out
U8(isnumber_out) → isnumber_out
U5(U, V, X, isnumber_out) → U6(U, V, d_in(U, X))
d_in(div(U, V), X) → U4(d_in(times(U, power(V, p(0))), X))
d_in(times(U, V), X) → U2(U, V, X, d_in(U, X))
d_in(T, X) → U1(isnumber_in(T))
U1(isnumber_out) → d_out(0)
d_in(X, X) → d_out(1)
U2(U, V, X, d_out(A)) → U3(U, V, A, d_in(V, X))
U3(U, V, A, d_out(B)) → d_out(+(times(B, U), times(A, V)))
U4(d_out(W)) → d_out(W)
U6(U, V, d_out(W)) → d_out(times(V, times(W, power(U, p(V)))))
d_in(x0, x1)
isnumber_in(x0)
U7(x0)
U8(x0)
U5(x0, x1, x2, x3)
U1(x0)
U2(x0, x1, x2, x3)
U3(x0, x1, x2, x3)
U4(x0)
U6(x0, x1, x2)